.ant-pro-modal .ant-modal-wrap {
  overflow: hidden;
  pointer-events: none;
}
.ant-pro-modal .ant-modal-wrap.ant-modal-centered {
  text-align: unset;
}
.ant-pro-modal .ant-modal-wrap > .ant-modal {
  position: relative;
  max-width: 100vw;
  margin: unset;
  padding: unset;
}
.ant-pro-modal .ant-modal-wrap > .ant-modal > div,
.ant-pro-modal .ant-modal-wrap > .ant-modal .ant-modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.ant-pro-modal
  .ant-modal-wrap
  > .ant-modal
  .ant-modal-content
  > .ant-modal-header {
  user-select: none;
}
.ant-pro-modal
  .ant-modal-wrap
  > .ant-modal
  .ant-modal-content
  > .ant-modal-body {
  flex: auto;
  height: 100%;
  overflow: auto;
}

/* 全屏模式 */
.ant-pro-modal.ant-pro-modal-fullscreen .ant-modal-wrap > .ant-modal {
  inset: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  height: 100% !important;
}

/* 关闭按钮 */
.ant-pro-modal.ant-pro-modal-closeIcon .ant-modal-close {
  cursor: auto;
  width: unset;
  height: unset;
  transition: unset;
  background-color: transparent;
  color: inherit;
}
.ant-pro-modal.ant-pro-modal-closeIcon .ant-modal-close:focus,
.ant-pro-modal.ant-pro-modal-closeIcon .ant-modal-close:hover {
  text-decoration: none;
}
.ant-pro-modal.ant-pro-modal-closeIcon .ant-modal-close-x {
  line-height: unset;
}

/* 关闭按钮自定义 */
.ant-pro-modal.ant-pro-modal-closeIcon
  .ant-modal-close-x
  .ant-pro-modal-closeIcon__custom
  button {
  margin-inline-end: 8px;
  color: inherit;
  opacity: 0.45;
}
.ant-pro-modal.ant-pro-modal-closeIcon
  .ant-modal-close-x
  .ant-pro-modal-closeIcon__custom
  button:last-child {
  margin-inline-end: unset;
}
.ant-pro-modal.ant-pro-modal-closeIcon
  .ant-modal-close-x
  .ant-pro-modal-closeIcon__custom
  button:focus,
.ant-pro-modal.ant-pro-modal-closeIcon
  .ant-modal-close-x
  .ant-pro-modal-closeIcon__custom
  button:hover {
  opacity: 0.88;
}

/* Hooks支持的icon，渲染@ant-design/icons-vue图标时 */
.ant-pro-modal
  .ant-modal-wrap
  > .ant-modal
  .ant-modal-content
  > .ant-modal-header
  > .ant-modal-title
  > .anticon {
  float: left;
  margin-inline-end: 12px;
  margin-block-end: 1px;
  margin-block-start: 1px;
  font-size: 22px;
}
